<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/24
 * Time: 0:53
 */

namespace App\Exceptions;


use App\Utils\Enums\ExceptionEnums;

class SystemException extends BaseException
{
    public function __construct($msg = '', array $data = [], $code = 0, \Throwable $previous = null)
    {
        $code = $code === 0 ? ExceptionEnums::SYSTEM_ERROR : $code;

        parent::__construct($msg, $data, $code);
    }
}